package com.example.blog_system.enums;

/**
 * Created with IntelliJ IDEA.
 * Description: 排序选项枚举类
 */
public enum SortOption {
//    更新时间 降序升序
    UPDATETIME_DESC(1),
    UPDATETIME_ASC(2),
//    阅读量 降序升序
    RCOUNT_DESC(3),
    RCOUNT_ASC(4),
//    获赞数 降序升序
    LIKEEDCOUNT_DESC(5),
    LIKEEDCOUNT_ASC(6),
//    评论数降序升序
    COMMENTCOUNT_DESC(7),
    COMMENTCOUNT_ASC(8),
    //收藏数降序升序
    COLLECTCOUNT_DESC(9),
    COLLECTCOUNT_ASC(10);

      private final int SORT_OPTION;
    SortOption(int option) {
        SORT_OPTION = option;
    }
    public int getSortOption() {
        return SORT_OPTION;
    }
}
